package cn.liziguo.tank.factory;

import cn.liziguo.tank.constants.GameEnum;
import cn.liziguo.tank.script.LoadEnemyComponent;
import cn.liziguo.tank.script.MonitorWinComponent;
import cn.liziguo.tank.script.WordComponent;
import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.entity.EntityFactory;

/**
 * @author Liziguo
 * @date 2022-07-09 16:32:51
 */
public final class WordFactory implements EntityFactory {

    public static void createWord() {
        FXGL.entityBuilder().type(GameEnum.WORD).with(new WordComponent()).buildAndAttach();
    }

    public static void createLoadEnemy() {
        FXGL.entityBuilder().with(new LoadEnemyComponent()).buildAndAttach();
    }

    public static void createMonitorWin() {
        FXGL.entityBuilder().with(new MonitorWinComponent()).buildAndAttach();
    }

}
